package main

import "fmt"

/*
运算符
*/
func main() {
	a := 8 //101
	b := 2 //010

	fmt.Printf("%b %b\n", a, b)
	fmt.Printf("a&b %v %b\n", a&b, a&b)
	fmt.Printf("a|b %v %b\n", a|b, a|b)
	fmt.Printf("a^b %v %b\n", a^b, a^b)
	fmt.Printf("a>>b %v %b\n", a>>b, a>>b)
	fmt.Printf("a<<b %v %b\n", a<<b, a<<b)

}
